#include "ftpcommand.h"

#include <QSslSocket>

FtpCommand::FtpCommand(QObject *parent) :
    QObject(parent)
{
    started = false;
    bResuseSocket = false;
}

void FtpCommand::start(QSslSocket *socket,bool bResuseSocket)
{
    started = true;
    this->socket = socket;
    this->bResuseSocket = bResuseSocket;
    if (false == bResuseSocket) {
        socket->setParent(this);
        connect(socket, SIGNAL(disconnected()), this, SLOT(deleteLater()));
    }
    startImplementation();
}
